import request from '@/utils/request'

const analysisApi = {
  analysis: '/api/statistics/Get_KB_BZQKFX',
  direction: '/api/statistics/Get_KB_SQQKZX',
  guarantee: '/api/statistics/Get_KB_BZFSFX',
  proportionTypes: '/api/statistics/Get_KB_RYJGFX',
  occupancyStatus: '/api/statistics/Get_KB_GZFRZQK',
  distributionStatus: '/api/statistics/Get_KB_BTFFQK',
  situation: 'api/statistics/Get_KB_RC_CJQKFX',
  way: 'api/statistics/Get_KB_RC_CJFS',
  commercialOne: '/api/statistics/Get_KB_RC_KGRCXZ',
  commercialTwo: '/api/statistics/Get_KB_RC_KGXF',
  guaranteeOne: '/api/statistics/Get_KB_RC_KGJSQK',
  guaranteeTwo: '/api/statistics/Get_KB_RC_KGJH',
  crowd: '/api/statistics/Get_KB_RC_RYQKFX',
  rent: '/api/statistics/Get_KB_RC_ZJSP',
  hire: '/api/statistics/Get_KB_RC_CZQK'
}

export function getSituationAnalysis (parameter) {
  return request({
    url: analysisApi.analysis,
    method: 'get',
    params: parameter
  })
}

export function getSituationDirection (parameter) {
  return request({
    url: analysisApi.direction,
    method: 'get',
    params: parameter
  })
}

export function getSituationGuarantee (parameter) {
  return request({
    url: analysisApi.guarantee,
    method: 'get',
    params: parameter
  })
}

export function getProportionTypes (parameter) {
  return request({
    url: analysisApi.proportionTypes,
    method: 'get',
    params: parameter
  })
}

export function getOccupancyStatus (parameter) {
  return request({
    url: analysisApi.occupancyStatus,
    method: 'get',
    params: parameter
  })
}

export function getDistributionStatus (parameter) {
  return request({
    url: analysisApi.distributionStatus,
    method: 'get',
    params: parameter
  })
}

export function getSituation (parameter) {
  return request({
    url: analysisApi.situation,
    method: 'get',
    params: parameter
  })
}

export function getWay (parameter) {
  return request({
    url: analysisApi.way,
    method: 'get',
    params: parameter
  })
}

export function getCommercialOne (parameter) {
  return request({
    url: analysisApi.commercialOne,
    method: 'get',
    params: parameter
  })
}

export function getCommercialTwo (parameter) {
  return request({
    url: analysisApi.commercialTwo,
    method: 'get',
    params: parameter
  })
}

export function getGuaranteeOne (parameter) {
  return request({
    url: analysisApi.guaranteeOne,
    method: 'get',
    params: parameter
  })
}

export function getGuaranteeTwo (parameter) {
  return request({
    url: analysisApi.guaranteeTwo,
    method: 'get',
    params: parameter
  })
}

export function getCrowd (parameter) {
  return request({
    url: analysisApi.crowd,
    method: 'get',
    params: parameter
  })
}

export function getRent (parameter) {
  return request({
    url: analysisApi.rent,
    method: 'get',
    params: parameter
  })
}

export function getHire (parameter) {
  return request({
    url: analysisApi.hire,
    method: 'get',
    params: parameter
  })
}
